package 程序.数组;

public class 二维数组的遍历 {
    public static void main(String[] args) {
        int [][] srray=new int [5][5];
        for (int i = 0; i < 5; i++) {
            for (int j = 0; j < 5; j++) {
                srray[i][j]=5*i+j+1;
            }
        }
        for (int i = 0; i < 5; i++) {
            for (int j = 0; j < 5; j++) {
                System.out.print(srray[i][j]+" ");

            }System.out.println();
        }
    }
}
